﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="a_news.ascx.cs" Inherits="administrator_uc_admin_a_news" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<table cellspacing="1" class="classtable">
    <tr>
        <td class="classtitle" colspan="2">
            THÊM MỚI
        </td>
    </tr>
    <tr>
        <td class="classmessage" colspan="2">
            <asp:Label ID="lblMessage" runat="server"></asp:Label>
        </td>
    </tr> 
    <tr>
        <td class="classcolleft">
            Chọn nhóm tin:</td>
        <td class="classcolright">
            <asp:DropDownList ID="DropdownParentID" runat="server" Width="250px" AppendDataBoundItems="true">
                <asp:ListItem Value="0">---Chọn nhóm tin---</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Ảnh đại diện:</td>
        <td class="classcolright">
            <asp:FileUpload ID="FileUploadNews" runat="server" Width="300px" />
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Tiêu đề:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtTitle" runat="server" Width="500px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtTitle" ErrorMessage="(*)"></asp:RequiredFieldValidator>
        </td>
    </tr> 
    <tr>
        <td class="classcolleft">
            Mô tả:</td>
        <td class="classcolright">
            <CKEditor:CKEditorControl ID="CKEditorDescription" runat="server" Toolbar="Basic" Height="90px"></CKEditor:CKEditorControl>
            <%--<FCKeditorV2:FCKeditor ID="FCKDescription" runat="server" BasePath="~/fckeditor/" 
                    ToolbarSet="EditorSimple" Height="120px" Width="680px">
            </FCKeditorV2:FCKeditor>--%>            
        </td>
    </tr>   
    <tr>
        <td class="classcolleft">
            Nội dung:</td>
        <td class="classcolright">
            <CKEditor:CKEditorControl ID="CKEditorBody" Toolbar="Full" runat="server" Height="220px"></CKEditor:CKEditorControl>
            <%--<FCKeditorV2:FCKeditor ID="FCKBody" runat="server" BasePath="~/fckeditor/" 
                    ToolbarSet="hmweb" Height="300px" Width="680px">
            </FCKeditorV2:FCKeditor>--%>            
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Nguồn bài viết:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtSource" runat="server" Width="500px"></asp:TextBox>            
        </td>
    </tr>    
    <tr>
        <td class="classcolleft">
            Hiển thị:</td>
        <td class="classcolright">
            <asp:RadioButtonList ID="rdActive" runat="server" 
                RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">Có</asp:ListItem>
                <asp:ListItem Value="0">Không</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            &nbsp;</td>
        <td class="classcolright">
            <asp:LinkButton ID="lbtAddNewItem" runat="server" onclick="lbtAddNewItem_Click">
            <img src="../images/icons/icon_add.gif" border="0px" /> <b>Thêm Mới</b>
            </asp:LinkButton>
            ||
            <asp:LinkButton ID="lbtCloseForm" runat="server" 
                OnClientClick="javascript:CloseWindows();" CausesValidation="False">
            <img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b>
            </asp:LinkButton>
         </td>
    </tr>
</table>
